home *** CD-ROM | disk | FTP | other *** search
- /*
- * Ioc_SetBits.c --
- *
- * Source code for the Ioc_SetBits library procedure.
- *
- * Copyright 1988 Regents of the University of California
- * Permission to use, copy, modify, and distribute this
- * software and its documentation for any purpose and without
- * fee is hereby granted, provided that the above copyright
- * notice appear in all copies. The University of California
- * makes no representations about the suitability of this
- * software for any purpose. It is provided "as is" without
- * express or implied warranty.
- */
-
- #ifndef lint
- static char rcsid[] = "$Header: Ioc_SetBits.c,v 1.1 88/06/19 14:29:24 ouster Exp $ SPRITE (Berkeley)";
- #endif not lint
-
- #include <sprite.h>
- #include <fs.h>
-
-
- /*
- *----------------------------------------------------------------------
- *
- * Ioc_SetBits --
- * Set any bits of the stream's flag field that are set in the
- * bits arguments. ie, the bits get or'ed into the stream flags.
- *
- * Results:
- * None.
- *
- * Side effects:
- * The 1 bits in 'bits' get or'ed into the stream flags.
- *
- *----------------------------------------------------------------------
- */
-
- ReturnStatus
- Ioc_SetBits(streamID, bits)
- int streamID;
- int bits;
- {
- register ReturnStatus status;
-
- status = Fs_IOControl(streamID, IOC_SET_BITS, sizeof(int),
- (Address)&bits, 0, (Address)NULL);
- return(status);
- }
-